import os

import pymongo as pymongo
from dotenv import load_dotenv

load_dotenv('env.ini', encoding='utf-8')
MONGO_URI = os.getenv('MongoDB_DATABASE_URL')
MONGO_DB = os.getenv('MongoDB_DATABASE_DB')
mongo_client = pymongo.MongoClient(host=MONGO_URI, maxPoolSize=10, connectTimeoutMS=2000000)
mongo_db = mongo_client[MONGO_DB]
